﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using ALE_Server;

namespace ALE_Server.EC
{
    [Serializable]
    [DataContract]
    public class ECReportGroupListMember
    {
        private EPCWrapper m_EpcTag;
        private bool m_EpcSet;
        private bool m_TagSet;
        private bool m_RawHexSet;
        private bool m_RawDecSet;

        private Uri m_EPC;
        private Uri m_Tag;
        private string m_rawHex;
        private string m_rawDecimal;

        [DataMember]
        public Uri EPC
        {
            get
            {
                return m_EPC;
            }
            set
            {
                m_EPC = value;
            }
        }

        [DataMember]
        public Uri Tag
        {
            get
            {
                return m_Tag;
            }
            set
            {
                m_Tag = value;
            }
        }

        [DataMember]
        public string RawHex
        {
            get
            {
                return m_rawHex;
            }
            set
            {
                m_rawHex = value;
            }
        }

        [DataMember]
        public string RawDecimal
        {
            get
            {
                return m_rawDecimal;
            }
            set
            {
                m_rawDecimal = value;
            }
        }

        [DataMember]
        public EPCWrapper EpcTag
        {
            get
            {
                return m_EpcTag;
            }
            set
            {
                m_EpcTag = value;
            }
        }

        [DataMember]
        public bool EpcSet
        {
            get
            {
                return m_EpcSet;
            }
            set
            {
                m_EpcSet = value;
            }
        }

        [DataMember]
        public bool TagSet
        {
            get
            {
                return m_TagSet;
            }
            set
            {
                m_TagSet = value;
            }
        }

        [DataMember]
        public bool RawHexSet
        {
            get
            {
                return m_RawHexSet;
            }
            set
            {
                m_RawHexSet = value;
            }
        }

        [DataMember]
        public bool RawDecSet
        {
            get
            {
                return m_RawDecSet;
            }
            set
            {
                m_RawDecSet = value;
            }
        }

        public override string ToString()
        {
            return XmlSerializeHelper.Serialize(this);
        }
    }
}
